#ifndef _AT_H
#define _AT_H

#include <stdint.h>
#include <stdio.h>

#define ATDebug(format,...)   printf(format,##__VA_ARGS__)
#define ATDebugln(format,...) printf("[AT] "format"\n",##__VA_ARGS__)



typedef enum{
	AT_No_Error = 1,
	AT_Error  = 0,
	AT_Timeout  = -1,
	AT_Not_Match = -2,
	AT_Param_Fail  = -3
}AT_Echo;






void sendAtCmd(char* cmd);
void sendAtData(uint8_t* buf, uint16_t size);
//void sendAtData(uint8_t* buf, uint16_t size);





#endif
